package org.state;
//	B下一状态为C或者D
public class StateB extends State {

	@Override
	public void MethodA() {
		
	}

	@Override
	public void MethodB() {
		System.out.println("我是状态B");
	}

	@Override
	public void MethodC() {
		super.context.setCurrentState(Context.STATE_C);
		super.context.MethodC();
	}

	@Override
	public void MethodD() {
		super.context.setCurrentState(Context.STATE_D);
		super.context.MethodD();
	}

}
